package com.tedu.mybatis.pojo;

import java.util.Date;

/**
 * 使用当前User类表示Weibo库中的user表
 * 这个类的每一个实例表示user表中的一条记录
 * 因此user表中有多少个字段,这个类上就对应着有多少个属性
 */
public class User {
    private Integer id;
    private String username;
    private String password;
    private String nickname;
    private Date created;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }
}
